<div class="box">
  <div class="top"><?php echo $heading_title; ?></div>
  <div class="middle">
  <div style="padding:5px;"><?php echo $code; ?></div>
  <?php foreach ($danhmuchotros as $danhmuchotro) { ?>
  <?php if($danhmuchotro['hotrotructuyens']) { ?>
  <div class="hotrotructuyen"><?php echo $danhmuchotro['name']; ?></div>
	<table align="center" border="0" cellpadding="0" cellspacing="0" class="hotro">
		<tbody>
		<?php $i = 0; ?>
		<?php foreach ($danhmuchotro['hotrotructuyens'] as $hotrotructuyen) { ?>
			<?php $i++; ?>
			<tr>
				<td align="left" width="12" class="tdtop">
				<a href="ymsgr:sendIM?<?php echo $hotrotructuyen['nickyahoo']; ?>"><img align="left"  src="http://opi.yahoo.com/online?u=<?php echo $hotrotructuyen['nickyahoo']; ?>&m=g&t=0" /></a>
				</td>
				<td align="right" class="tdtop"><?php echo $hotrotructuyen['title']; ?></td>
			</tr>
			<tr>
				<td align="left" width="12" class="tdbottom" <?php if(sizeof($danhmuchotro['hotrotructuyens']) != 1 && sizeof($danhmuchotro['hotrotructuyens']) != $i) { echo 'style="border-bottom:1px solid #D8D8DA;"'; } ?>>
				<?php if($hotrotructuyen['nickskype']) { ?>
				<a href="skype:<?php echo $hotrotructuyen['nickskype']; ?>?chat"><img align="right" src="catalog/view/theme/default/image/skype.png" alt="Chat Skype" border="0"></a>
				<?php } ?>
				</td>
				<td align="right" class="tdbottom" <?php if(sizeof($danhmuchotro['hotrotructuyens']) != 1 && sizeof($danhmuchotro['hotrotructuyens']) != $i) { echo 'style="border-bottom:1px solid #D8D8DA;"'; } ?>>Hotline: <span><?php echo $hotrotructuyen['sodienthoai']; ?></span></td> 
			</tr>
		<?php } ?>
		</tbody>
	</table>
	<?php } ?>
	<?php } ?>
  </div>
</div>